<template>
  <div class="box">
    <div class="top">
      <div class="details">
        <div class="left">
          <span><router-link to="/mine">&lt;</router-link> </span>
          <p>我的订单</p>
        </div>
        <div class="right">
          <span class="iconfont icon-sousuo"></span>
          <span class="iconfont icon-gouwuche"></span>
        </div>
      </div>
      <nav>
        <div>
          <span>
            <router-link to="/orderform/all" active-class="skip" class="default"
              >全部</router-link
            >
          </span>
        </div>
        <div>
          <span
            ><router-link
              to="/orderform/payment"
              active-class="skip"
              class="default"
              >待付款</router-link
            ></span
          >
        </div>
        <div>
          <span
            ><router-link
              to="/orderform/collect"
              active-class="skip"
              class="default"
              >待收货</router-link
            ></span
          >
        </div>
        <div>
          <span
            ><router-link
              to="/orderform/evaluate"
              active-class="skip"
              class="default"
              >待评价</router-link
            ></span
          >
        </div>
      </nav>
    </div>
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "orderform",
};
</script>

<style scoped>
@import url(../assets/xiaomi-iconfont/iconfont.css);
.details {
  height: 0.48rem;
  display: flex;
  box-sizing: border-box;
  padding: 0 0.18rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e0e0;
}
.details .left {
  font-size: 0.15rem;
  display: flex;
  align-items: center;
}
.details .left span {
  font-size: 0.18rem;
  margin-right: 0.18rem;
}
.details .right .iconfont {
  font-size: 0.17rem;
  margin-left: 0.18rem;
}
nav {
  height: 0.35rem;
  border-bottom: 1px solid #e0e0e0;
  background: #f5f5f5;
  display: flex;
}
nav div {
  width: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
}
nav div span {
  height: 100%;
  line-height: 0.35rem;
  box-sizing: border-box;
  color: #8e8e8e;
  display: flex;
}
.default {
  color: #8e8e8e;
}
.skip {
  height: 100%;
  color: #ef3100;
  border-bottom: 1px solid #ef3100;
}
</style>

